package com.gec.wiki.service;

import com.gec.wiki.pojo.Ebook;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gec.wiki.pojo.req.EbookQueryReq;
import com.gec.wiki.pojo.resp.EbookQueryResp;
import com.gec.wiki.pojo.resp.PageResp;
import com.gec.wiki.service.impl.BusinessException;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 *
 */
public interface EbookService extends IService<Ebook> {

    List<EbookQueryResp> getEbookByEbookReq(EbookQueryReq req);

    PageResp<EbookQueryResp> getEbookListByPage(EbookQueryReq req);

    String uploadImage(MultipartFile file, String folder) throws BusinessException;
}
